﻿Imports System.Runtime.CompilerServices

Namespace Extensions
    Module XmlExtensions

        <Extension()> _
        Public Function Content(ByVal xml As XElement) As ContentResult
            Return New ContentResult With {.Content = xml.ToString, .ContentType = "text/xml", .ContentEncoding = System.Text.Encoding.UTF8}
        End Function

    End Module
End Namespace